﻿using Core.Migrations.Extensions;
using FluentMigrator;

namespace BP.Plugin.Monitor.Infrastructure.Persistence.Migrations.OnlineUsers;

[Migration(202511091252)]
public class AddLoginInfoColumn : ForwardOnlyMigration
{
    public override void Up()
    {
        Alter.Table("OnlineUsers")
              .InSchema(SchemaNames.Monitor)
              .AddColumn("Status").AsInt32().Nullable().WithColumnDescription("登录状态码")
              .AddColumn("Behavior").AsString(100).Nullable().WithColumnDescription("登录信息")
              .AddColumn("Description").AsString(500).Nullable().WithColumnDescription("描述");
    }
}
